let gulp = require('gulp')
let replace = require('gulp-replace')

gulp.task('replace', function () {
  gulp.src('./dist/index.html')
    .pipe(replace('./', 'mobile/'))
    .pipe(gulp.dest('./dist/'))
  gulp.src('./dist/scripts/app.js')
    .pipe(replace('"fonts/', '"mobile/fonts'))
    .pipe(gulp.dest('./dist/scripts/'))
})

gulp.task('copy', ['replace'], function () {
  gulp.src('./dist/*')
    .pipe(gulp.dest('./dist/mobile'))
})

gulp.task('default', ['replace'])
